@charset "UTF-8";
@charset "UTF-8";
// 颜色链接
@mixin link-colors($normal, $hover, $active, $focus) {
  color: $normal;
  transition: all 0.15s linear 0s;
  &:hover, &:active, &:focus {
	color: $hover;
	text-decoration: none;
	outline: 0;
  }
}
// 浏览器前缀 如：圆角
@mixin css3($property, $value) {
  @each $prefix in -webkit-, -moz-, -ms-, -o-, '' {
	#{$prefix}#{$property}: $value;
  }
}
// Black和White
@function black($opacity) {
  @return rgba(0, 0, 0, $opacity);
}
@function white($opacity) {
  @return rgba(255, 255, 255, $opacity);
}
// 内阴影和外阴影
@mixin box-emboss($opacity, $opacity2) {
  box-shadow: white($opacity) 0 1px 0, inset black($opacity2) 0 1px 0;
}
// 透明度
@mixin opacity($opacity) {
  opacity: $opacity;
  $opacity-ie: $opacity * 80;
  filter: alpha(opacity=$opacity-ie);
  //IE8
  filter: progid:DXImageTransform.Microsoft.Alpha(opacity=95);
  //IE6, IE7, IE8
}
// 绝对定位
@mixin abs-pos ($top:auto, $right:auto, $bottom:auto, $left:auto) {
  top: $top;
  right: $right;
  bottom: $bottom;
  left: $left;
  position: absolute;
}
// 行高
@mixin line-height($heightValue:12 ) {
  line-height: $heightValue + px;
  //fallback for old browsers
  line-height: (0.125 * $heightValue) + rem;
}
// 截取文本text-overflow
@mixin singleline-ellipsis($substract:0) {
  //`$substract`单位为%
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100% - $substract;
}
%singleline-ellipsis {
  @include singleline-ellipsis;
}
// 最小高度min-height
@mixin min-height($height) {
  min-height: $height;
  height: auto !important;
  @if $legacy-support-for-ie {
	_height: $height;
  }
}